<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        <header class="bar bar-nav shop-header">
          <h1 class="title">微信公众号支付测试</h1>
        </header>
        <div class="content" style="margin-bottom: 2.7rem;">
          
          
          <div class="content-block" style="margin: 0px; margin-top: 5rem;">
            <p><a href="#" class="button button-big button-success button-fill order-pay" id="wx-pay"><i class="icon icon-fs-wechat"></i>&nbsp;&nbsp;微信支付</a></p>
          </div>
          
        </div>
        <!-- End Content -->
        
        
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/trading/wechat-payment.js" />
    <script type="text/javascript">
      require(['page/trading/wechat-payment'], function(page) {
        page.init({
          orderId: '123123213214'
        })
      })
    </script>
    
  </body>
</html>